<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <zujian></zujian>
    </div>

    <div id="app2">
        <zujian></zujian>
        2222
        <zujian></zujian>
        <zujian></zujian>
        <zujian></zujian>
    </div>
</body>
<script src="./vue.min.js"></script>
<script>
    
    Vue.component("zujian",{
        template:"<h2>这是一个全局组件</h2>"
    })

    var vm = new Vue({
        el:"#app",
        data:{
            msg:"haha"
        }

    })

    var vue2 = new Vue({
        el:"#app2",
    })
</script>
</html>